package school;

public abstract class Teacher {
	private String name, school;

	// 初始化的构造方法
	public Teacher(String name, String school) {
		System.out.println("构造了老师");
		this.name = name;
		this.school = school;
	}

	public String getName() {
		return name;
	}

	public void selfIntro() {
		System.out.println("大家好，我是来自" + school + "，叫" + name);
	}

	// 不知道上什么内容
	public void giveLession() {
		System.out.println("知识点讲解");
		System.out.println("总结提问！");
	}

	// 输出老师擅长什么
	public abstract void goodAt();

	@Override
	// 忽略他
	public String toString() {
		return "姓名" + name + ",来自：" + school;
	}
}
